import { apiConstants,loadModalInfo,getUrlParam} from '@/js/utils'
import generatePassword from '@/components/password/generatePassword'

new Vue({
  el: "#app",
  components: {generatePassword},
  data() {
    return {
      passwordList:[],
      companyInfo:getUrlParam(),
    }
  },
  created() {
    this.getPasswords()
  },
  watch: {

  },
  methods: {
    getPasswords(){
      let _this = this;
      _this.$ajax(apiConstants.company_getPasswords, {
        data: {companyId: _this.companyInfo.id},
        success: function (data) {
          _this.passwordList = data;
        }
      })
    },
  }
});
